package Model;
/*
 * Written by Phat Le and Dustin Stripplin
 */
import java.sql.Date;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.TreeSet;

import FileParser.FileParser;
/**
 * Headquarters can create conference and assign program chair.
 * @author Phat and Dustin
 *
 */
public class Headquarters extends User {
	
	private Date date;
	private String name;
	private String venue;
	private Timestamp time;
	private Date deadline;
	private String programchair;
	private Conference conf;
	private FileParser fileParser;
	
	public Headquarters(final FileParser a_fileParser, final String a_name){
		super(a_fileParser, a_name);
		name = a_name;
		fileParser = a_fileParser;
	}
	
	public Headquarters(final FileParser a_fileParser, final String a_name, final Conference a_conf){
		super(a_fileParser, a_name);
		name = a_name;
		fileParser = a_fileParser;
		conf = a_conf;
	}
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getVenue() {
		return venue;
	}
	public void setVenue(String venue) {
		this.venue = venue;
	}
	public Timestamp getTime() {
		return time;
	}
	public void setTime(Timestamp time) {
		this.time = time;
	}
	public Date getDeadline() {
		return deadline;
	}
	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}
	public String getProgramchair() {
		return programchair;
	}
	public void setProgramchair(String programchair) {
		this.programchair = programchair;
	}
	public Conference getConf() {
		return conf;
	}
	public void setConf(Conference conf) {
		this.conf = conf;
	}
	
	public TreeSet<String> getUserList(final String a_name){
		return fileParser.getUserList(a_name);
	}
	
	public void createConf(final Conference a_conf, final String a_pc){
		fileParser.createConf(a_conf, a_pc);
	}
}
